aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/blog/page/[number].tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-09-19 18:13:57 +0200
committerArmand Philippot <git@armandphilippot.com>2023-09-19 19:12:31 +0200
commit2faf2e34331703b3bdea3eb487cb8799c8d65377 (patch)
treededc6557ddaa8fedd42d9bdf77950f8f9168ebcb /src/pages/blog/page/[number].tsx
parentd1fe9e2164fc5c8fd767b456eecc2a4eb929a33f (diff)
refactor(build): replace paths aliases with relative paths
Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
Diffstat (limited to 'src/pages/blog/page/[number].tsx')
-rw-r--r--src/pages/blog/page/[number].tsx49
1 files changed, 26 insertions, 23 deletions
diff --git a/src/pages/blog/page/[number].tsx b/src/pages/blog/page/[number].tsx
index e72eb9a..bfd9953 100644
--- a/src/pages/blog/page/[number].tsx
+++ b/src/pages/blog/page/[number].tsx
@@ -1,45 +1,48 @@
-import PostsList from '@components/organisms/layout/posts-list';
-import LinksListWidget from '@components/organisms/widgets/links-list-widget';
-import { getLayout } from '@components/templates/layout/layout';
-import PageLayout from '@components/templates/page/page-layout';
+import { GetStaticPaths, GetStaticProps } from 'next';
+import Head from 'next/head';
+import { useRouter } from 'next/router';
+import Script from 'next/script';
+import { ParsedUrlQuery } from 'querystring';
+import { useIntl } from 'react-intl';
+import PostsList from '../../../components/organisms/layout/posts-list';
+import LinksListWidget from '../../../components/organisms/widgets/links-list-widget';
+import { getLayout } from '../../../components/templates/layout/layout';
+import PageLayout from '../../../components/templates/page/page-layout';
import {
getArticles,
getArticlesEndCursor,
getTotalArticles,
-} from '@services/graphql/articles';
+} from '../../../services/graphql/articles';
import {
getThematicsPreview,
getTotalThematics,
-} from '@services/graphql/thematics';
-import { getTopicsPreview, getTotalTopics } from '@services/graphql/topics';
-import { type NextPageWithLayout } from '@ts/types/app';
-import { EdgesResponse } from '@ts/types/graphql/queries';
+} from '../../../services/graphql/thematics';
+import {
+ getTopicsPreview,
+ getTotalTopics,
+} from '../../../services/graphql/topics';
+import { type NextPageWithLayout } from '../../../types/app';
+import { EdgesResponse } from '../../../types/graphql/queries';
import {
type RawArticle,
type RawThematicPreview,
type RawTopicPreview,
-} from '@ts/types/raw-data';
-import { settings } from '@utils/config';
-import { loadTranslation, type Messages } from '@utils/helpers/i18n';
+} from '../../../types/raw-data';
+import { settings } from '../../../utils/config';
+import { loadTranslation, type Messages } from '../../../utils/helpers/i18n';
import {
getLinksListItems,
getPageLinkFromRawData,
getPostsList,
-} from '@utils/helpers/pages';
+} from '../../../utils/helpers/pages';
import {
getBlogSchema,
getSchemaJson,
getWebPageSchema,
-} from '@utils/helpers/schema-org';
-import useBreadcrumb from '@utils/hooks/use-breadcrumb';
-import useRedirection from '@utils/hooks/use-redirection';
-import useSettings from '@utils/hooks/use-settings';
-import { GetStaticPaths, GetStaticProps } from 'next';
-import Head from 'next/head';
-import { useRouter } from 'next/router';
-import Script from 'next/script';
-import { ParsedUrlQuery } from 'querystring';
-import { useIntl } from 'react-intl';
+} from '../../../utils/helpers/schema-org';
+import useBreadcrumb from '../../../utils/hooks/use-breadcrumb';
+import useRedirection from '../../../utils/hooks/use-redirection';
+import useSettings from '../../../utils/hooks/use-settings';
type BlogPageProps = {
articles: EdgesResponse<RawArticle>;